package com.crm.service.orderManager;

import com.crm.model.entity.orderManager.CustomerOrderGiftRelation;

import java.util.List;

/**
 * @author luojie
 * @date 2021/3/17 22:07
 */
public interface CustomerOrderGiftRelationDbService {

    /**
     * 产品订单--赠品关系表
     * @param customerOrderGiftRelation
     * @return
     */
    Boolean insertOrderGiftRelation(CustomerOrderGiftRelation customerOrderGiftRelation);

    /**
     * 订单管理-订单列表-订单详情-赠品详情列表
     * @Author pym
     * @Date  2021/3/19 9:37
     * @param productOrderId
     * @return {@link {java.util.List<com.crm.model.entity.orderManager.CustomerOrderGiftRelation>}}
     */
    List<CustomerOrderGiftRelation> selectCustomerOrderGiftRelationList(String productOrderId);

    /***
     * @Description:根据订单id和赠品活动id查询订单中赠品活动下的所有赠品List
     * @Param: productOrderId 订单id
     * @param giftId 赠品活动id
     * @Author: luojie
     * @Date: 2021/3/26 19:22
     */
    List<CustomerOrderGiftRelation> selectCustomerOrderGiftRelationByOrderIdAndGiftId(String productOrderId,String giftId);

}
